package com.ym.utils.spring;

import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

//@Configuration
public class SpringMvcConfigurationInitializer implements WebMvcConfigurer {

 /*   @Value("${file.address}")
    private String address;

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        //  /home/file/**为前端URL访问路径  后面 file:xxxx为本地磁盘映射
        registry.addResourceHandler("/ym/file/**").addResourceLocations("file:" + address);
    }*/
}
